/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UILayer;

import java.awt.Component;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;

/**
 *
 * @author Moulde
 */
public class DropdownMenu extends JPanel
{
    public JPopupMenu popup;

    public DropdownMenu()
    {
        popup = new JPopupMenu();
    }

    public void SetButtons(ArrayList<JButton> buttons)
    {
        popup = new JPopupMenu();
        for (JButton jButton : buttons)
        {
            popup.add(jButton);
        }
    }
}
